<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../head.jsp"%>

<html>
<head>
<link rel="stylesheet" href="<%=webBackPath %>css/common.css" type="text/css"/>
<script type="text/javascript" src="<%=webBackPath %>js/calendar.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script>
<script type="text/javascript" src="<%=webBackPath %>js/prototype-1.6.0.3.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/json.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/public.js"></script> 
<script type="text/javascript" src="<%=webBackPath %>js/lib/md5.js"></script> 
<script language='javascript'>
/**
* 提交
*/
function doSubmit(){
	var form = document.editFrom;
	if(document.getElementById("oldPwd").value.length < 6) {
		alertPP("旧密码不能小于6位！");
		return false;
	}
	if(document.getElementById("newPwd").value.length < 6) {
		alertPP("新密码密码不能小于6位！");
		return false;
	}
	if(document.getElementById("newPwd").value != document.getElementById("newPwdConfim").value) {
		alertPP("确认密码和新密码输入的不一致！");
		return false;
	}
	form.oldPwd.value = hex_md5(document.getElementById("oldPwd").value);
	form.newPwd.value = hex_md5(document.getElementById("newPwd").value);
	form.submit();
}

</script>
</head>
<body>

<div id="man_zone">

    <table width="99%" border="1" align="center"  cellpadding="3" cellspacing="1">
	<tr>
      <td colspan="4"><bbsh:BBSH name="基本信息"/></td>
    </tr>
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="原密码"/>：</td>
      <td width="82%" colspan="3">
		<INPUT TYPE="password" class="normal_txt"  name="oldPwd" id="oldPwd" maxlength="30" size="40" value="">
	  </td>
    </tr>
	<tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="新密码"/>：</td>
      <td width="82%" colspan="3">
		<INPUT TYPE="password" class="normal_txt"  name="newPwd" id="newPwd" maxlength="30" size="40" value="">
	  </td>
    </tr>
    <tr>
      <td width="18%" class="left_title_1">* <bbsh:BBSH name="确认新密码"/>：</td>
      <td width="82%" colspan="3">
		<INPUT TYPE="password" class="normal_txt"  name="newPwdConfim" id="newPwdConfim" maxlength="30" size="40" value="">
	  </td>
    </tr>
	<tr>
      <td></td>
      <td colspan="3"><INPUT TYPE="button" class="normal_button" onclick="doSubmit();" value="<bbsh:BBSH name='提交'/>"></td>
    </tr>
  </table>
</div>
   <form name="editFrom" action="<%=webAppPath %>editGerenInfo.pk" method="post">
	   <input type="hidden" name="updateFlag" value="pwdUpdate"> 
	   <input type="hidden" name="oldPwd" value=""> 
	   <input type="hidden" name="newPwd" value=""> 
   </form>
</body>
</html>
